<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Stairs</title>

  <style>
    .container {
      height: 500px;
      overflow: auto;
      border: 1px solid;
    }

    .container li {
      height: 100px;
      margin: 12px;
      background-color: bisque;
    }

    .nav {
      display: flex;
    }

    .nav li {
      margin: 12px 20px;
      padding: 12px;
      cursor: pointer;
    }

    .nav li:hover,
    .nav li.active {
      color: royalblue;
    }
  </style>
</head>

<body>
  <ul class="container">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
    <li>10</li>
  </ul>

  <ul class="nav">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
    <li>10</li>
  </ul>
</body>

<script type="module">
  import { Stairs } from '../dist/index.js'

  const stairs = new Stairs({
    floors: '.container li',
    navLinks: '.nav li'
  })
</script>

</html>